package com.mallcloud.mall.common.swagger.annotation;

import com.mallcloud.mall.common.swagger.support.SwaggerBeanDefinitionRegistrar;
import com.mallcloud.mall.common.swagger.support.SwaggerProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.lang.annotation.*;

/**
 * 开启swagger
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableSwagger2
@EnableConfigurationProperties(SwaggerProperties.class)
@Import({ SwaggerBeanDefinitionRegistrar.class })
public @interface EnableMallSwagger2 {

}
